import request from '@/utils/request'

/**
 * 获取用户列表数据
 */
export const getAclList = data => {
  return request({
    url: '/sys/acl/list',
    params: data
  })
}

export const addAcl = data => {
  return request({
    url: '/sys/acl/save',
    method: 'POST',
    data
  })
}

export const updateAcl = data => {
  return request({
    url: '/sys/acl/update',
    method: 'POST',
    data
  })
}

export const roleUserAcls = data => {
  return request({
    url: '/sys/acl/roleUserAcls',
    method: 'POST',
    data
  })
}

export const deleteAclModule = id => {
  return request({
    url: `/sys/aclModule/delete/${id}`,
    method: 'delete'
  })
}
